import akshare as ak
# part_1, part_2, part_3 = ak.get_shfe_option_daily(trade_date="20191017", symbol="天胶期权")
# print(part_1)
# print(part_2)
# print(part_3, part_3.columns)
# # 铜期权、天胶期权、黄金期权
# part_4, part_5 = ak.get_dce_option_daily(trade_date="20200304", symbol="铁矿石期权")
# print(part_4)
# print(part_5)
# # 玉米期权、豆粕期权、铁矿石期权
# option_df = ak.get_czce_option_daily(trade_date="20191216", symbol="PTA期权")
# print(option_df[["品种代码   ", "隐含波动率"]])
# # 白糖期权、棉花期权、PTA期权、甲醇期权、菜籽粕期权

namelist = ['铜期权', '天胶期权', '黄金期权',
            '玉米期权', '豆粕期权', '铁矿石期权',
            '白糖期权', '棉花期权', 'PTA期权', '甲醇期权', '菜籽粕期权']

def smile_curve(opname, date):